#include "client.hpp"

static void Usage(std::string proc)
{
  std::cerr << "Usage: " << "\n\t" << proc << "svr_ip svr_port" << std::endl;
}

int main(int argc, char *argv[])
{
  if(argc != 3)
  {
    Usage(argv[0]);
    exit(1);
  }

  std::string ip = argv[1];
  uint16_t port = atoi(argv[2]);

  ns_client::Client cli(ip, port);

  cli.InitClient();

  cli.Run();

  return 0;
}
